home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 374 < prev    next >
Internet Message Format  |  1994-08-27  |  4KB

  1. Date: Thu, 15 Jul 93 18:25:49 -0400
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: nox@jelal.north.de
  4. In-Reply-To: Juergen Lock's message of Wed, 14 Jul 93 16:21:46 CES <9307141421.AA00212@jelal.north.de>
  5. Subject: Fast serial (was: misc kernel patches... (mostly tty stuff))
  6.  
  7. > ok!  but that still requires changes in MiNT.  for example currently it
  8. >seems a 1K tty read gets _always_ translated into 1000 device reads of
  9. >each one char, that just cant be fast no matter how good the driver is...
  10. >and to get it real fast such a driver would also need a way to tell
  11. >MiNT that it reads and writes bytes, not longs.  then it could get a
  12. >RAW 1K read or write as that and just bcopy the data. (and also sleep
  13. >gracefully when it waits for more than a few bytes to go over the port
  14. >so it doesn't have to waste so much CPU time...)
  15.  
  16. The idea would be to have the drive bypass MiNT completely and twiddle
  17. the iorec itself, to do the reads and writes.
  18.  
  19. The only thing at all difficult about doing this that i've noticed is
  20. that the iorec elements seem to be misnamed and misdocumented; in
  21. practice the head element seems to really be the tail and vice-versa.
  22.  
  23. > or things like TIOCCAR/CLOCAL, HUPCL.. they probably need some help
  24. >from the kernel too.
  25.  
  26. I don't know what those are, but they look like maybe part of the
  27. system V tty driver controls?  Of course if you want to support new
  28. driver controls at least some of them will need to be in the kernel.
  29.  
  30. >>  I've been thinking recently
  31. >> that most of my TOS 1.0 hacks in MiNT's rsconf() code should really be
  32. >> in a standalone device driver as well (especially since that code
  33. >> still doesn't work terribly well.)
  34. >
  35. > well either this, or just forget about those 1001 TOS bugs and tell
  36. >people to use one of the serial port fix TSRs available, some of them
  37. >now even work. :)
  38.  
  39. I agree, but I never found one that corrected the TOS 1.0 bug of not
  40. being able to query the port speed.  (I think I found one that claimed
  41. to do this but actually just caused spectacular crashes.) 
  42.  
  43. > and for a standalone modem driver rsconf (and iorec) would better just
  44. >translate their parameters into device ioctls, right?
  45.  
  46. For the most part yes, but they could also do nice things like giving
  47. real FIONREAD/FIONWRITE results for the serial port, allow Fselect()
  48. on the port, etc.
  49.  
  50. >> In one of my conversations about the serial port with someone (I think
  51. >> it was someone on this list) I was told that there was already a
  52. >> driver along these lines that was mostly completed, but I haven't
  53. >> heard anything about it since then.
  54. >
  55. > hmm i hope you don't mean me :) i only have a hacked serptch2 to
  56. >replace buggy TOS routines, ([Bx]co*, Rcsonf, Ioctl...) but it doesn't
  57. >know about MiNT.  the fast IO stuff i did for taylor uucp does it all
  58. >itself... (and it has to `guess' the physical device with ttyname
  59. >because i found no other way to get it from an fd)  but of course it
  60. >could be useful for writing such a driver... its in tuu103d3.zoo on a.a,
  61. >look at the diffs for sys2.c.
  62.  
  63. No, I was talking about a MiNT installed device for fast/better serial
  64. port access, not a TSR.  I could go dig through my old mail and find
  65. the refernce but it would probably be faster to just write the code
  66. :-).
  67.  
  68. > other than that i only know of someone who seems to hate MiNT so much
  69. >that he wrote a fast driver that tries to act like MiNT, but for TOS!
  70. >(looks for Fopen ("u:\dev\modem1"..) and then handles Fread/Fwrite
  71. >itself or so...  i guess if you could read all those maus news you'd
  72. >sometimes just shake your head... :-)
  73.  
  74. I love it when people say they hate MiNT so they want to implement all
  75. its functionality in TOS (e.g. they are effectively saying they want
  76. to write their own MiNT :-)
  77.  
  78. --
  79. entropy -- it's not just a good idea, it's the second law.
  80. Personal mail:      entropy@gnu.ai.mit.edu
  81. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  82.  
  83.  
  84.